const joi = require('joi')
const creator = joi.string().required()
const id = joi.string().min(1).required()
const name = joi.string().required()
const price = joi.number().required()

// 小黑记事本获取列表的规则
exports.getList_schema = {
  query: {
    creator
  }
}

//新增小黑记事本列表的的规则
exports.addXhList_schema = {
  body: {
    creator,
    name,
    price
  }
}

//删除小黑记事本列表的规则
exports.deleteList_schema = {
  params: {
    id
  }
}